import request from '@/utils/request'

// 获取患者列表
export function getPatientList(params: any) {
  return request({
    url: 'doctor/patient/list',
    method: 'get',
    params
  })
}

// 获取患者详情
export function getPatientDetail(recordId: number) {
  return request({
    url: `doctor/patient/detail/${recordId}`,
    method: 'get'
  })
}

// 删除患者记录
export function deletePatient(recordId: number) {
  return request({
    url: `doctor/patient/${recordId}`,
    method: 'delete'
  })
} 